﻿using OA.Model.MyAttribute;
using System.ComponentModel.DataAnnotations;
namespace OA.Core.Oss
{
    public class OssConfig
    {
        /// <summary>
        /// Endpoint
        /// </summary>
        [Tag(TagEnum.Text, "required", "Endpoint", 0, 100)]
        public string Endpoint { get; set; }

        /// <summary>
        /// AccessKeyId
        /// </summary>
        [Tag(TagEnum.Text, "required", "AccessKeyId", 0, 100)]
        public string AccessKeyId { get; set; }
        /// <summary>
        /// AccessKeySecret
        /// </summary>
        [Tag(TagEnum.Text, "required", "AccessKeySecret", 0, 100)]
        public string AccessKeySecret { get; set; }

        /// <summary>
        /// BucketName
        /// </summary>
        [Tag(TagEnum.Text, "required", "BucketName", 0, 100)]
        public string BucketName { get; set; }


        [Tag(TagEnum.Text, "required", "OssCallBackUrl", 0, 100)]
        [Display(Name = "OssCallBackUrl")]
        public string OssCallBackUrl { get; set; }
    }
}
